package com.cskaoyan._01encapsulate._03notice;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/8 10:27
 **/
/*
对于布尔值的get方法比较特殊. 不要起名叫isXxxx
 */
public class Demo {
    public static void main(String[] args) {

    }
}

class Stu{
    String name;
    // boolean isMale;
    boolean gender;

    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //public boolean isMale() {
    //    return isMale;
    //}
    //
    //public void setMale(boolean male) {
    //    isMale = male;
    //}
}